home *** CD-ROM | disk | FTP | other *** search
- Path: t500.vol.it!news
- From: robiz@mbox.vol.it (Roberto Bizzarri)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Real-file-size
- Date: 12 Jan 1996 22:21:44 GMT
- Organization: Video On Line
- Message-ID: <536.6585T1386T2427@mbox.vol.it>
- NNTP-Posting-Host: 194.166.59.133
- X-Newsreader: THOR 2.22 (Amiga;TCP/IP) *UNREGISTERED*
-
- Hello! I'm looking for a routine (language C) thar returns the _real_ size of
- a file. For example, a file of 100 bytes needs two block on a disk:
- header-block + data-block.
-
- If disk is FFS, it will get 512 + 512 bytes...
-
- If HardDisk with blocks of 2048 bytes each, 2048+2048...
-
- If RAM Disk, 1024 + 1024... and so on.
-
- In other words, similar to /list/ command (shows blocks).
-
- Can you help me? Thanks!
-
-
-
-
- __ __
- |_) |_)
- | \oberto |_)izzarri (E-mail: robiz@mbox.vol.it)
- (FidoNet: 2:332/901.31)
-
-